package com.example.mark.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mark.entity.College;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface CollegeSortMapper extends BaseMapper<College> {
    @Update("UPDATE college_sort SET endorse = endorse+1 WHERE id = #{id}")
    int updateCollegeSortEndorse(int id);
}
